Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR covers the entirety of the development of the @-feature in the chat-input field of Onlook's right-panel. The @-Feature, much like the one in Cursor/VS code, Notion, etc., allows for users to @-mention folders, files, code, and design-panel elements such as brand styles, images, and pages, inside of Onlook's AI Chat window.
Key Features:
Interactions/Behaviors:
Related Issues
N/A
Type of Change
Testing
Screenshots (if applicable)
@-Menu Open:

@-sub-menu (child menu) Open:

@-mention's added to Chat-Input:

Video Demo:
https://github.com/user-attachments/assets/1375ad09-0ef0-4251-8609-b22dad0f70e9
Additional Notes
I used Onlook to prototype the @-feature. Ultimately, the design I implemented in this PR differs slightly from the prototype (this PR is more robust). Have a look at the prototype for a general overview of the functionality of the feature.
Onlook Prototype: https://www.onlook.com/project/a71c51f2-fd13-4584-a20f-fe41268b8515
I need someone to help with the following touches:
Important
Introduces @-feature in chat input for mentioning files, folders, and design elements with a new At Menu, fuzzy search, and recent activity tracking.
AtMenu
,MenuItem
, and related components inright-panel/chat-tab/at-menu/
.ChatInput
inchat-input/index.tsx
to handle @ mentions and At Menu interactions.RecentActivityTracker
for tracking recent file and tab activities.MentionMessageContext
tocontext.ts
for handling mention contexts.providers.ts
to handle API key errors more gracefully.data-providers.test.ts
.This description was created by
for 32fd603. You can customize this summary. It will automatically update as commits are pushed.